<!--
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<div class="ddp-box-part" *ngIf="isShow">
  <div class="ddp-box-title">
    {{'msg.lineage.ui.list.search.column' | translate}}
    <em class="ddp-icon-essential"></em>
  </div>
  <!-- select box -->
  <edit-rule-field-combo [isMulti]="true" [fields]="fields" [selected]="selectedFields" [tabIndex]="2"
                         (onChange)="changeFields($event)" ></edit-rule-field-combo>
  <!-- //select box -->
</div>
<!--//part-->
<!-- part -->
<div class="ddp-box-part ddp-editor" *ngIf="isShow">
  <div class="ddp-box-title">
    {{'msg.dp.th.expression' | translate}}<em class="ddp-icon-essential"></em>
  </div>
  <rule-suggest-input #set_value_input
                      [formula]="inputValue"
                      [command]="'set'" [cmdArg]="'value'"
                      [tabIndex]="3" [placeholder]="'msg.dp.th.expression.ph' | translate"
                      [fields]="fields"
                      (onChange)="inputValue = $event" ></rule-suggest-input>
  <a href="javascript:" class="ddp-btn-bg" (click)="openPopupFormulaInput('inputValue')"><em class="ddp-icon-editor"></em>{{'msg.dp.btn.advanced.editor' | translate }}</a>
</div>
<!-- //part -->
<!-- part -->
<div class="ddp-box-part ddp-editor" *ngIf="isShow">
  <div class="ddp-box-title">
    {{'msg.dp.ui.cond' | translate}}
  </div>
  <rule-suggest-input #set_row_input
                      [formula]="condition"
                      [command]="'set'" [cmdArg]="'row'"
                      [tabIndex]="4" [placeholder]="'msg.dp.th.expression.ph' | translate"
                      [fields]="fields"
                      (onChange)="condition = $event" ></rule-suggest-input>
  <a href="javascript:" class="ddp-btn-bg" (click)="openPopupFormulaInput('condition')"><em class="ddp-icon-editor"></em>{{'msg.dp.btn.advanced.editor' | translate }}</a>
</div>

